﻿using System;
using System.Collections.Generic;
using Color = System.Drawing.Color;
using SwinGame;

namespace RandomShapeGenerator.src
{
   public class RectangleRenderer : IShapeRenderer
    {
       public void Draw(Shape s)
       {
           Graphics.FillRectangle(
               s.Color, s.X, s.Y, s.Width, s.Height
               );
       }
       public void Highlight(Shape s)
       {
           Graphics.DrawRectangle(
        Color.Yellow, s.X, s.Y, s.Width,s.Height
        );
       }
    }
}
